|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.databases.configurations.DatabaseCriteriaConfiguration
public class DatabaseCriteriaConfiguration
A configuration for a database query criteria.
| Field Summary | |
|---|---|
static int |
COMPARISON_EQUAL
Compare for equality. |
static int |
COMPARISON_GREATER_THAN
Compare for greater than. |
static int |
COMPARISON_GREATER_THAN_OR_EQUAL
Compare for greater than or equality. |
static int |
COMPARISON_LESS_THAN
Compare for less than. |
static int |
COMPARISON_LESS_THAN_OR_EQUAL
Compare for less than or equality. |
static int |
COMPARISON_NOT_EQUAL
Compare for lack of equality. |
static int |
TYPE_NONE
No requirement exists for this criteria. |
static int |
TYPE_STATIC
Use a static value to match against. |
static int |
TYPE_VARIABLE
Use the value of a variable to match against. |
| Fields inherited from interface org.eclipse.vtp.framework.databases.configurations.DatabaseConstants |
|---|
NAME_COLUMN, NAME_COMPARISON, NAME_CRITERIA, NAME_DATABASE, NAME_DRIVER, NAME_JDBC_DATABASE, NAME_JNDI_DATABASE, NAME_MAPPING, NAME_NAME, NAME_PASSWORD, NAME_QUERY, NAME_RESULT_CARDINALITY, NAME_RESULT_LIMIT, NAME_RESULT_NAME, NAME_RESULT_TYPE, NAME_TABLE, NAME_TIMEOUT, NAME_TYPE, NAME_URI, NAME_URL, NAME_USERNAME, NAME_VALUE, NAMESPACE_URI |
| Constructor Summary | |
|---|---|
DatabaseCriteriaConfiguration()
Creates a new DatabaseCriteriaConfiguration. |
|
| Method Summary | |
|---|---|
int |
getComparison()
Returns the type of comparison to perform. |
java.lang.String |
getName()
Returns the name of the field to map to. |
int |
getType()
Returns the type of mapping to perform. |
java.lang.String |
getValue()
Returns the value to use for the mapping. |
void |
load(org.w3c.dom.Element configurationElement)
Loads the configuration information from the specified XML element. |
void |
save(org.w3c.dom.Element configurationElement)
Saves the configuration information into the supplied XML element. |
void |
setComparison(int comparison)
Sets the type of comparison to perform. |
void |
setName(java.lang.String name)
Sets the name of the field to map to. |
void |
setType(int type)
Sets the type of mapping to perform. |
void |
setValue(java.lang.String value)
Sets the value to use for the mapping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COMPARISON_EQUAL
public static final int COMPARISON_NOT_EQUAL
public static final int COMPARISON_LESS_THAN
public static final int COMPARISON_LESS_THAN_OR_EQUAL
public static final int COMPARISON_GREATER_THAN
public static final int COMPARISON_GREATER_THAN_OR_EQUAL
public static final int TYPE_NONE
public static final int TYPE_VARIABLE
public static final int TYPE_STATIC
| Constructor Detail |
|---|
public DatabaseCriteriaConfiguration()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - The name of the field to map to.public int getComparison()
public void setComparison(int comparison)
comparison - The type of comparison to perform.public int getType()
public void setType(int type)
type - The type of mapping to perform.public java.lang.String getValue()
public void setValue(java.lang.String value)
value - The value to use for the mapping.public void load(org.w3c.dom.Element configurationElement)
IConfiguration
load in interface IConfigurationconfigurationElement - The element to load the configuration from.public void save(org.w3c.dom.Element configurationElement)
IConfiguration
save in interface IConfigurationconfigurationElement - The element to save the configuration to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||